@import '../../sass/src/frame';
$bg-color: #fafafa;
$hover-text-color: #1c77b8;
.iconfont {
    font-size: 12px;
}

.bold-text {
    font-weight: 700;
}

.wrapper {
    background: $bg-color;
    position: absolute;
    left: 0;
    right: 0;
    top: 144px;
    bottom: 28px;
    padding: 0 20px;
    .condition-block {
        height: 100%;
        position: relative;
        overflow: hidden;
        .headline {
            padding: 10px 0 0;
            line-height: 1em;
            text-align: center;
            margin-bottom: 14px;
            .text {
                display: inline-block;
                padding: 0 10px;
                position: relative;
                background: #fafafa;
                top: -8px;
            }
            &:before {
                content: '';
                display: block;
                width: 100%;
                height: 1px;
                background-color: #666;
                margin-top: 6px;
            }
        }
        .condition-entity {
            position: absolute;
            left: 0;
            top: 51px;
            bottom: 0;
            right: 0;
            overflow-x: hidden;
            overflow-y: auto;
        }
    }
    .inner-right {
        position: absolute;
        top: 40px;
        left: 0;
        right: 0;
        bottom: 0;
        overflow: auto;
    }
}

.btn {
    display: inline-block;
    height: 30px;
    line-height: 28px;
    padding: 0 10px;
    color: #fff;
    background-color: #353751;
    border: solid 1px #353751;
    font-size: 12px;
    border-radius: 4px;
    min-width: 60px;
    text-align: center;
    text-decoration: none;
    vertical-align: top;
}

.btn.secondary {
    background-color: #fff;
    color: #333;
    border: 1px solid #e0e0e0;
}

.btn.active {
    color: #494c6c;
    background-color: #303249;
    transition: all ease .1s;
    border-color: #303249;
}

.btn.secondary.active,
.btn.secondary:active {
    color: #fff;
    background-color: $hover-text-color;
    transition: all ease .1s;
    border-color: $hover-text-color;
}

.brand-tab-btn {
    border-radius: 4px;
    font-size: 0;
    margin-bottom: 20px;
    .tab-btn {
        height: 36px;
        line-height: 34px;
        min-width: 80px;
        border-radius: 0;
        margin: 0;
        font-weight: 700;
        &:first-child {
            border-top-left-radius: 4px;
            border-bottom-left-radius: 4px;
        }
        &:last-child {
            border-top-right-radius: 4px;
            border-bottom-right-radius: 4px;
        }
    }
}

.series-tab-content {
    position: absolute;
    top: 56px;
    bottom: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

.tab-content {
    font-size: 0;
    line-height: 0;
    margin-right: -20px;
}

.series-item {
    display: inline-block;
    margin: 0 20px 20px 0;
    .series-btn {
        display: inline-block;
        width: 144px;
        text-decoration: none;
        .img-wrapper {
            width: 100%;
            height: 100px;
            line-height: 98px;
            border: solid 1px transparent;
            background: #fff;
            text-align: center;
            font-size: 0;
            img {
                width: auto;
                height: auto;
                max-width: 100%;
                max-height: 100%;
                vertical-align: middle;
                outline: 0;
            }
        }
        .text {
            font-size: 12px;
            line-height: 1em;
            text-align: center;
            color: #333;
            margin-top: 10px;
        }
        &:hover,
        &.active {
            .img-wrapper {
                border: solid 1px $hover-text-color;
                background: #fcedef;
                box-shadow: 3px 0 0 #e8e8e8, 0 3px 0 #e8e8e8;
            }
            .text {
                color: $hover-text-color;
            }
        }
    }
}

//right
.search-condition {
    width: 385px;
    float: right;
    margin-left: 55px;
    .condition-item {
        margin-bottom: 15px;
        background: #fafafa;
        border-bottom: 1px dotted #bababa;
        position: relative;
        .condition-title {
            line-height: 1.2em;
            border-left: 2px solid #353751;
            padding-left: 5px;
            margin: 0 0 15px;
            .title-text {
                margin-right: 8px;
            }
        }
        .condition-content {
            padding-left: 10px;
            margin-bottom: 25px;
            line-height: 2.35em;
            min-height: 100px;
        }
        &.expand {
            .condition-content {
                overflow: auto;
                max-height: 150px;
            }
            .btn-collapse {
                display: none;
            }
        }
        &.collapse {
            .condition-content {
                overflow: hidden;
                max-height: 100px;
            }
            .btn-expand {
                display: none;
            }
        }
    }
}

.current,
.important-text {
    color: $hover-text-color;
}

.text-link {
    color: #333;
    &.secondary {
        text-decoration: none;
    }
    &.active {
        color: $hover-text-color;
    }
}

.condition-btn-wrapper {
    position: absolute;
    width: 100%;
    bottom: 10px;
    line-height: 1em;
    .condition-btn {
        display: inline-block;
        text-decoration: none;
        color: #333;
        float: right;
        .text {
            vertical-align: middle;
        }
    }
}